import {Component} from "@angular/core";
import {ProductService} from "./service/product.component";
import {Product} from "./entity/product";

@Component({selector:"product-show",
            templateUrl:"./app/show.html",
            providers:[ProductService]})
export class ProductShowComponent{
    private productList:Product[];

    constructor(productService:ProductService){
        this.productList = productService.getAll();
    }
}